package com.ftg.learn.pattern.proxy;

/**
 * @author kangjx
 * @createTime 2022/8/10
 */
public class SingerProxy implements Isinger{

    private Isinger isinger;

    public SingerProxy(Isinger isinger){
        this.isinger = isinger;
    }

    @Override
    public void song() {
        System.out.println("大家好我是" + isinger.getName());
        System.out.println("今天由我为大家唱首歌");
        isinger.song();
        System.out.println("鞠躬");
        System.out.println("我今天嗨了");
        isinger.dance();
    }


    @Override
    public void dance() {

    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public void setName(String name) {

    }
}
